package org.example.myerp.service.serviceimpl;

import org.example.myerp.mapper.productDesign.productArchiveManagement.ProInfoAssetMapper;
import org.example.myerp.pojo.*;import org.example.myerp.service.ProInfoAssetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * ��Ʒ��������Ϣ������ҵ��㡿ʵ����
 * @author DELL
 *
 */
@Service
public class ProInfoAssetServiceImpl implements ProInfoAssetService {
	@Autowired
    ProInfoAssetMapper proInfoAssetMapper;

	/**
	 * ��Ӳ�Ʒ��������Ϣ
	 */
	@Override
	public Integer getInsertProInfoAssetMessage(ProInfoAsset proInfoAsset) {
		Integer row = proInfoAssetMapper.insertProInfoAssetMessage(proInfoAsset);
		return row;
	}

	/**
	 * ���ݲ�Ʒ��Ų�ѯ��Ʒ��������Ϣ
	 */
	@Override
	public ProInfoAsset getSelectProInfoAssetByPId(Integer pId) {
		ProInfoAsset proInfoAsset = proInfoAssetMapper.selectProInfoAssetByPId(pId);
		return proInfoAsset;
	}

	/**
	 * ��Ʒ�󸴺�ʱ�޸Ĳ�Ʒ��������Ϣ��
	 */
	@Override
	public Integer getUpdateProInfoAssetByProInfoAssetAll(ProInfoAsset proInfoAsset) {
		Integer row = proInfoAssetMapper.updateProInfoAssetByProInfoAssetAll(proInfoAsset);
		return row;
	}
}
